package com.qinsoft.business.onsalelog.bean;

import java.util.Date;

import com.qinsoft.frame.exception.ApiException;


public class OnSaleLog
{
	private Long logId;				//日志ID
	private String nick;			//用户昵称
	private Boolean logState;		//日志状态(true:成功、false:失败)
	private Date createDate;		//创建日期
	private Date createTime;        //创建时间
	private String logDetail;		//日志详情
	private Long size;              //操作记录数
	private Long numIid;            //商品ID
	public OnSaleLog()
    {
        super();
    }

    public OnSaleLog(String nick, Long numIid, ApiException e)
    {
        super();
        this.nick = nick;
        this.logState = false;
        this.numIid = numIid;
        this.logDetail = e.getMessage();
    }

    public OnSaleLog(String nick, String size, String logDetail)
    {
        super();
        this.nick = nick;
        this.logState = true;
        this.size = Long.parseLong(size);
        this.logDetail = logDetail;
    }

    public Long getLogId() {
		return logId;
	}
	
	public void setLogId(Long logId) {
		this.logId = logId;
	}
	
	public String getNick() {
		return nick;
	}
	
	public void setNick(String nick) {
		this.nick = nick;
	}
	
	public Boolean getLogState() {
		return logState;
	}
	
	public void setLogState(Boolean logState) {
		this.logState = logState;
	}
    
    public Date getCreateDate()
    {
        return createDate;
    }
    
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public String getLogDetail() {
		return logDetail;
	}
	
	public void setLogDetail(String logDetail) {
		this.logDetail = logDetail;
	}

    public Long getSize()
    {
        return size;
    }

    public void setSize(Long size)
    {
        this.size = size;
    }

    public Long getNumIid()
    {
        return numIid;
    }

    public void setNumIid(Long numIid)
    {
        this.numIid = numIid;
    }
}
